﻿#region License
// (c) Intergen.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
#endregion

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace TextGlow.Control.Controls.Document
{
  public class LineContainer : WrapPanel
  {
    protected override Size CalculateElementSize(UIElement element)
    {
      return base.CalculateElementSize(element);

      //return new Size(s.Width, s.Height);
    }

    protected override Size CustomMeasureOverride(Size constraint)
    {
      Size s = base.CustomMeasureOverride(constraint);

      return new Size(Width, s.Height);
    }

    protected override Size CustomArrangeOverride(Size finalSize)
    {
      return base.CustomArrangeOverride(finalSize);
    }
  }
}
